﻿<%@ Page Title="" Language="C#" MasterPageFile="~/administrator/backend.Master" AutoEventWireup="true" CodeBehind="truong-view.aspx.cs" Inherits="VQWEB.administrator.huongnghiep.truong.truong_view" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content_backend" runat="server">
<div id="viewdefault" class="row"></div>
<div id="formtab" class="row">
 <ul class="nav nav-tabs" id="ConfigsTab" style="margin-bottom: 0px">
        <li class="active"><a href="#tab1" data-toggle="tab">Nhóm trường bổ sung 1</a></li>
        <li><a href="#tab2" data-toggle="tab">Nhóm trường bổ sung 2</a></li>
        <li><a href="#tab3" data-toggle="tab">Nhóm trường bổ sung 3</a></li>        
        <li><a href="#tab4" data-toggle="tab">Nhóm trường bổ sung 4</a></li>
        <li><a href="#tab5" data-toggle="tab">Nhóm trường bổ sung 5</a></li>
    </ul>
    <div class="tab-content" style="border-left: 1px solid #DDDDDD; border-right: 1px solid #DDDDDD;
        border-bottom: 1px solid #DDDDDD; padding: 15px">
        <div id="tab1" class="tab-pane active">
        </div>
        <div id="tab2" class="tab-pane" >
        </div>
        <div id="tab3" class="tab-pane">
        </div>       
        <div id="tab4" class="tab-pane">
        </div>
         <div id="tab5" class="tab-pane">
        </div>
    </div>
</div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Script_backend" runat="server">
<script type="text/javascript">

    var url_detail = '<%=ResolveUrl("~/administrator/templates/detail.tpl") %>';
    var url_ashx = "/admin/huongnghiep/truong/handler";
    $(document).ready(function () {
        $.get(url_ashx, { view_truong: "view_truong", Id: GetId() }, function (data) {
            var obj = $.parseJSON(data);
            $.jqoteload(url_detail, function (templates) {
                var active = (obj.active) ? "Kích hoạt" : "Chưa kích hoạt";
                $('#viewdefault').jqoteapp(templates.detail_tpl, { value: "<a href=/admin/huongnghiep/truong/edit/" + obj.id + ">" + obj.ten + "</a>" });
                $('#viewdefault').jqoteapp(templates.detail_tpl, { value: obj.ma });
                $('#viewdefault').jqoteapp(templates.detail_tpl, { value: obj.ten });
                $('#viewdefault').jqoteapp(templates.detail_tpl, { value: obj.logo });
                $('#viewdefault').jqoteapp(templates.detail_tpl, { value: obj.gioithieu });
                $('#viewdefault').jqoteapp(templates.detail_tpl, { value: obj.diachi });
                $('#tab1').jqoteapp(templates.detail_tpl, { value: obj.bosung0 });
                $('#tab1').jqoteapp(templates.detail_tpl, { value: obj.bosung1 });
                $('#tab1').jqoteapp(templates.detail_tpl, { value: obj.bosung2 });
                $('#tab1').jqoteapp(templates.detail_tpl, { value: obj.bosung3 });
                $('#tab1').jqoteapp(templates.detail_tpl, { value: obj.bosung4 });
                $('#tab1').jqoteapp(templates.detail_tpl, { value: obj.bosung5 });
                $('#tab1').jqoteapp(templates.detail_tpl, { value: obj.bosung6 });
                $('#tab2').jqoteapp(templates.detail_tpl, { value: obj.bosung7 });
                $('#tab2').jqoteapp(templates.detail_tpl, { value: obj.bosung8 });
                $('#tab2').jqoteapp(templates.detail_tpl, { value: obj.bosung9 });
                $('#tab2').jqoteapp(templates.detail_tpl, { value: obj.bosung10 });
                $('#tab2').jqoteapp(templates.detail_tpl, { value: obj.bosung11 });
                $('#tab2').jqoteapp(templates.detail_tpl, { value: obj.bosung12 });
                $('#tab3').jqoteapp(templates.detail_tpl, { value: obj.bosung13 });
                $('#tab3').jqoteapp(templates.detail_tpl, { value: obj.bosung14 });
                $('#tab3').jqoteapp(templates.detail_tpl, { value: obj.bosung15 });
                $('#tab3').jqoteapp(templates.detail_tpl, { value: obj.bosung16 });
                $('#tab3').jqoteapp(templates.detail_tpl, { value: obj.bosung17 });
                $('#tab3').jqoteapp(templates.detail_tpl, { value: obj.bosung18 });
                $('#tab4').jqoteapp(templates.detail_tpl, { value: obj.bosung19 });
                $('#tab4').jqoteapp(templates.detail_tpl, { value: obj.bosung20 });
                $('#tab4').jqoteapp(templates.detail_tpl, { value: obj.bosung21 });
                $('#tab4').jqoteapp(templates.detail_tpl, { value: obj.bosung22 });
                $('#tab4').jqoteapp(templates.detail_tpl, { value: obj.bosung23 });
                $('#tab4').jqoteapp(templates.detail_tpl, { value: obj.bosung24 });
                $('#tab5').jqoteapp(templates.detail_tpl, { value: obj.bosung25 });
                $('#tab5').jqoteapp(templates.detail_tpl, { value: obj.bosung26 });
                $('#tab5').jqoteapp(templates.detail_tpl, { value: obj.bosung27 });
                $('#tab5').jqoteapp(templates.detail_tpl, { value: obj.bosung28 });
                $('#tab5').jqoteapp(templates.detail_tpl, { value: obj.bosung29 });
                $('#tab5').jqoteapp(templates.detail_tpl, { value: obj.bosung30 });

                $('#viewdefault').jqoteapp(templates.detail_tpl, { value: active });
            });

        }); //end handler
    });   //end document
    </script>
</asp:Content>
